:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f8f9fa;
    --text-color: #333333;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.tool-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.upload-area {
    border: 2px dashed var(--primary-color);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    margin: 20px 0;
}

.upload-area:hover {
    background-color: #f8f9fa;
}

.preview-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

.preview-box {
    flex: 1;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.tool-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .preview-container {
        flex-direction: column;
    }
    
    .upload-area {
        padding: 20px;
    }
}

/* 加载动画 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* 表单控件样式 */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
} 